package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

@Mapper
public interface OrderSettingDao {
    @Select("select * from t_ordersetting where orderDate=#{date};")
    OrderSetting find_ordersetting_number(Date date);

    @Select("update t_ordersetting set reservations=reservations+1 where orderDate =#{date}; ")
    void update(Date date);
}
